﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Header.ascx.cs" Inherits="UserControls_Header" %>
    <%--Header Section Statr--%>
    <div class="TopContainer">
        <div class="DocumentContainer" style="background-color:#FFFFFF; height:130px;">
            <div style="float:left; margin-top:0px; margin-left:7px; width:18%;">
                <a href="/Default.aspx"><img src="/Images/BTC_logo.gif" alt="BTC Real Estate Logo" title="BTC Real Estate Logo" /></a>
            </div>
            <div class="TopBannerAdd">
                <img src="/Images/SliderImages/TopAddvertisement.jpg" alt="" title="" />
            </div>
            <div class="floatright" style="margin-right:10px; width:26%;">
                <div class="floatright">                    
                    <div class="TopButton"><a href="/Default.aspx">Home</a></div>
                    <%if (SessionCache.CurrentUser == null)
                      { %>
                    <div class="TopButton"><a href="/Pages/Public/Login.aspx">Log In</a></div>
                    <div class="TopButton"><a href="/Pages/Public/Registration.aspx">Register</a></div>
                    <%}
                      else
                      { %>
                      <div class="TopButton"><a href="/Pages/Public/Login.aspx?<%=AppConstants.QueryString.LOG_OUT %>=True">Log Out</a></div>
                      <div class="TopButton"><a href="/Pages/Private/Dashboard.aspx">My Account</a></div>
                    <%} %>
                    <div class="clearboth"></div>
                </div>
                <div class="clearboth"></div>
                <div style="text-align:right; margin-top:5px;"><asp:Literal ID="ltrLogin" runat="server"></asp:Literal></div>
                <%--<div style="margin-top:30px; color:#647265; text-align:right;">
                    <b><%= DateTime.Now.ToString("dddd, dd MMMM, yyyy hh:mm tt") %></b>
                </div>--%>
                <div class="clearboth"></div>
            </div>
            <div class="clearboth"></div>
        </div>
    </div>
    <%--Header Section End--%>

    <%--Top Navigation Start--%>
    <div class="NavigationContainer">
        <div class="DocumentContainer" style="height:22px; background:url(/Images/NavigationBack.gif); background-repeat:repeat-x;">
            <div class="TopMenu" id="TopMenu">
                <ul>
                    <li><a href="/Pages/Public/CompanySearch.aspx">Developers</a></li>
                    <li id="liSubmenuContainer" class="liSubmenuContainer">
                        <a href="/Pages/Public/CompanyList.aspx?<%=AppConstants.QueryString.BUSINESS_TYPE_ID %>=<%= ConfigReader.RealEstateServicesSPID %>">Service Providers</a>
                        <div id="divServiceProviderSubMenue">
                            <asp:Literal ID="ltrServiceProviderSubMenue" runat="server"></asp:Literal>               
                        </div>
                    </li>
                    <li><a href="/Pages/Public/RentSearch.aspx">Rent</a></li>
                    <li><a href="/Pages/Public/Loan.aspx">Loan</a></li>
                    <li><a href="/Pages/Public/JointVenture.aspx">Joint Venture</a></li>
                    <li><a href="/Pages/Public/ShowArticle.aspx">Article</a></li>
                    <%--<li><a href="/Pages/Public/ShowNews.aspx">&nbsp;&nbsp;News&nbsp;&nbsp;</a></li>--%>
                    <li class="redTab"><a href="<%=AppConstants.Pages.EVENT_LIST_PUBLIC %>">BTC Events</a></li>
                    <li><a href="/Pages/Public/SendQuery.aspx?Type=Sell">Sell</a></li>
                    <%--<li><a href="/Pages/Public/ProjectList.aspx?<%= AppConstants.QueryString.PROPERTY_TYPE_ID %>=<%= ConfigReader.ApartmentPropertyTypeID %>&<%= AppConstants.QueryString.STATUS_ID %>=<%= ConfigReader.ReadyStatusID %>">Ready Flat</a></li>--%>
                    <%--<li class="redTab"><a href="/Pages/Public/ShowContent.aspx?<%=AppConstants.QueryString.ID %>=<%=ConfigReader.ContentIDOfSpecialOffer %>">Special Offer</a></li>--%>
                    <li class="redTab"><a href="/Pages/Public/SpecialOfferList.aspx">Special Offer</a></li>
                    <li><a href="/Pages/Public/SendQuery.aspx">Query</a></li>
                    <li><a href="/Pages/Public/Investment.aspx">Job</a></li>
                    <li><a href="/Pages/Public/ShowContent.aspx?<%=AppConstants.QueryString.ID %>=<%=ConfigReader.ContentIDOfNeedToKnow %>">Useful Info</a></li>
                    <li class="last"><a href="/Pages/Public/ContactUs.aspx">Contact Us</a></li>
                </ul>
            </div>
            
        </div>
    </div>
    <%--Top Navigation End--%>


    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $('#liSubmenuContainer').hover(function () {
                var pos = $(this).position();
                $('#divServiceProviderSubMenue').css('left', pos.left + 'px').css('top', pos.top + 17 + 'px').slideDown();
            });

            $('#liSubmenuContainer').mouseleave(function () {
                $('#divServiceProviderSubMenue').slideUp();            
            });

            $('body').click(function () { $('#divServiceProviderSubMenue').slideUp(); });
            $('#divServiceProviderSubMenue').click(function (evt) {
                evt.stopPropagation();
            });
        });
    </script>